package com.ruoyi.mongo.senior.service;

import com.ruoyi.mongo.comprehensive.SeniorChinToEng;
import com.ruoyi.mongo.senior.entity.Senior;
import com.ruoyi.mongo.senior.entity.SeniorRecord;

import java.util.List;

public interface SeniorInterface {

    List<Senior> selectListByGroup(int group);

    List<SeniorRecord> selectTestListByPractice(String practice);

    List<SeniorRecord> selectStudyDetailByPractice(String practice);

    List<SeniorRecord> selectStudyDetailByPractice(String practice, Long userId);

    List<Senior> selectListOnlyOneMeaning(int group);

    List<SeniorRecord> selectListByPracticeId(String practice);

    List<SeniorRecord> selectListByPracticeId(String practice, long userId);

    List<Senior> selectListByType(String type, int limit);

    List<Senior> selectListByTypeRandom(String type, int limit);

    void saveData(Senior entity);

    void saveData(List<Senior> entitylist);

    void saveTestData(SeniorRecord entity);

    void saveTestData(List<SeniorRecord> entitylist);

    void saveTestData(SeniorRecord entity, Long userId);

    void saveData(Senior entity, Long userId);

    void insertNetDataByUser(Senior entity);

    void saveWriteData(SeniorChinToEng entity);

    void saveWriteData(SeniorChinToEng entity, String collectionName);

    List<SeniorChinToEng> selectWriteListByPractice(String practice);

    List<SeniorChinToEng> selectWriteListByPractice(String practice, String collectionName);

    void insertNetDataByUser(Senior entity, Long userId);
}
